<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="lib/swiper/swiper.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        html,
        body {
            height: 100%;
        }

        .swiper-container {
            height: 100%;
        }

        .swiper-wrapper {
            font-size: 14px;
        }
        .swiper-slide {
            border: 5px solid hotpink;
            box-sizing: border-box;
        }
        .loading {
            background-color: skyblue;
            width: 100%;
            height: 100%;
            z-index: 2;
        }
        .welcome {
            background-color: green;
            width: 100%;
            height: 100%;
            z-index: 1;
        }
        .pos {
            position: absolute;
            top: 0;
        }
    </style>
</head>

<body>
    <!-- 轮播 -->
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide">slider1</div>
            <div class="swiper-slide">slider2</div>
            <div class="swiper-slide">slider3</div>
            <div class="swiper-slide">slider4</div>
            <div class="swiper-slide">slider5</div>
            <div class="swiper-slide">slider6</div>
            <div class="swiper-slide">slider7</div>
        </div>
    </div>

    <!-- loading页面 -->
    <div class="loading pos"></div>
    <!-- 欢迎页面 -->
    <div class="welcome pos"></div>

</body>
<script src="lib/swiper/swiper.min.js"></script>
<script src="lib/zepto/zepto.js"></script>
<script src="lib/zepto/fx.js"></script>
<script src="lib/zepto/event.js"></script>
<script src="lib/zepto/touch.min.js"></script>

<!-- 提供了fade方法↓ -->
<script src="lib/zepto/fx_methods.js"></script>
<script type="text/javascript">
    var swiper = new Swiper('.swiper-container', {
        direction: 'vertical',
    })
    $('.loading').click(function () {
        $(this).fadeOut()
    })
    $('.welcome').click(function () {
        $(this).fadeOut()
    })


</script>

</html>